
	var overrideEval = function(w){
		w.evalGTD = w.eval;
		w.eval = function(s){
			var a = w.evalGTD(s);
			if( s.indexOf("[")>-1 && top.GTDInterceptEval ){
				top.GTDInterceptEval(a);							
			}
			return a;
		};
		
		//for( var i = 0; i < w.frames.length; i++ ){
			//overrideEval(w.frames[i]);
		//}
	};

	top.js.gmonkey.load('1', function(gmail){
			if( !gtdinboxFrame ){
				var viewChange = function(){
					top.GTDCallBack(gmail);
				};
				gmail.registerViewChangeCallback( viewChange );
			}
			GTDCallBack(gmail);
			
		});


	//overrideEval(window);
	for( var i = 0; i < window.frames.length; i++ ){
		if( !window.frames[i].frameElement.id ){
			overrideEval(window.frames[i]);
		}
	}

	
